package ClassOne.Iterator;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class Test3 {
    public static void main(String[] args) {
        Set set=new HashSet();
        set.add("aaa");
        set.add("bbb");
        set.add("ccc");

        Iterator it=set.iterator();

        while (it.hasNext()){
            System.out.println(it.next());
        }
    }
}
